package com.woniuxy.third.enums;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

//@JsonFormat(
//        shape = JsonFormat.Shape.OBJECT
//)
public enum CourseStatusEnum {
    DRAFT(0, "Draft"),
    ONSHOW(1, "OnShow"),
    FINISHED(2, "Finished");

    private Integer code;
    private String desc;

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    private CourseStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.desc;
    }
}
